package com.quanyan.user.service.admin;

import com.quanyan.common.Plugin.PageObj;
import com.quanyan.user.model.db.TbAdminGroup;
import com.quanyan.user.model.db.TbCity;
import com.quanyan.user.model.db.TbProvince;
import com.quanyan.user.model.vo.request.admin.ReqUserQuery;
import com.quanyan.user.model.vo.response.admin.RespUser;

import java.util.List;

/**
 * Created by huadongyang on 2016/8/12.
 */
public interface UserService {
    /**
     * 用户列表
     *
     * @param userQuery
     * @return
     */
    PageObj<List<RespUser>> queryUserList(ReqUserQuery userQuery);

    /**
     * 用户详情
     *
     * @param uid
     * @return
     */
    RespUser queryUserDetail(Integer uid);

    /**
     * 获取省列表
     *
     * @return
     */
    List<TbProvince> getProvinceList();

    /**
     * @param provinceId
     * @return
     */
    List<TbCity> getCitys(Integer provinceId);

    /**
     * 更新用户分组标签
     *
     * @param uid
     * @param groupId
     */
    void updateUserGroup(int uid, int groupId);

    /**
     * 获取用户分组标签
     *
     * @return
     */
    List<TbAdminGroup> getAdminGroups();

    /**
     * 插入分组标签
     *
     * @param tbAdminGroup
     */
    TbAdminGroup insertGroup(TbAdminGroup tbAdminGroup);

    /**
     * 删除分组标签
     */
    int deleteGroup(int id);

    /**
     * 测试之用
     * @param uid
     * @param friendId
     * @return
     */
    int insertTest(Integer uid, Integer friendId);
}
